﻿using System.Collections.Generic;
using System.ServiceModel;
using Silent.WCF.Interfaces;

namespace Silent.MDB.Common.Services
{
    [ServiceContract]
    public interface IRepositoryService<T> : IService
    {
        [OperationContract]
        void Add(T item, string location);
        [OperationContract]
        void Update(T item, string location);
        [OperationContract]
        void Remove(T item, string location);
        [OperationContract]
        ICollection<T> Load(T filter, string location);
        [OperationContract]
        void Save(ICollection<T> data, string location);
    }
}